<template>
  <input type="text" :value='chuanzhi' @input='handleInput'>
</template>

<script>
export default {
  data () {
    return {
      currentValue: this.value
    }
  },
  props: {
    chuanzhi: String
  },
  methods: {
    handleInput () {
      const value = event.target.value
      this.currentValue = value
      this.$emit('input', value)
    }
  }
}
</script>
